package cn.zjitc.quickstart.user.service.impl;

import cn.zjitc.quickstart.user.dao.UserDao;
import cn.zjitc.quickstart.user.domain.User;
import cn.zjitc.quickstart.user.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserDao userDao;
    @Override
    public User login(String username, String password) {
        User user = userDao.findByUsernameAndPassword(username,password);
        return user;
    }
}
